b=input().split()
a=['zero','one','two','three','four','five','six','seven','eight','nine']
for i in range(3):
    if len(b)!=3:
        print("Wrong Input")
        break
for i in range(10):
    if b[0]==a[i]:
        a[i]=a[i]*100
    if b[0]==a[i+1]:
        a[i]=a[i]*10
    if b[0]==a[i+2]:
        a[i+2]+a[i+1]+a[i]==c
        
print(c)
